package com.passive.lock.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.passive.lock.model.po.TDept;
import com.passive.lock.model.vo.TDeptVo;

@Repository("TDeptMapperCustom")
public interface TDeptMapperCustom {
	List<TDept> deptTree(@Param("deptid") String deptid);

	List<TDept> companyTree(@Param("deptid") String deptid);

	List<TDept> deptList(@Param("groupid") String groupid, @Param("tDeptVo") TDeptVo tDeptVo, @Param("offset") Integer offset,
			@Param("limit") Integer limit);

	int deptListCount(@Param("groupid") String groupid,@Param("tDeptVo") TDeptVo tDeptVo);

	String maxId(@Param("pid") String pid);

	List<TDept> groupTree(@Param("deptid") String deptid);
}